package com.lesson7.classadapter;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/8/29 17:16
 */
public class VoltageAdapter extends VolTage220V implements IVoltage5V
{
    @Override
    public int output5V()
    {
        //先获取220V的电压
        int output220V = output220V();
        //接着进行降压操作，把220V降到5V，怎么做？除以44
        int dst = output220V/44;
        return dst;
    }
}
